import { sequelize } from "./sequelize.js";
import { User } from '../model/User.js'

export const sync = async () => {
    await sequelize.sync();
    console.log("数据库连接成功");

    await User.sync()
    console.log("模型导入成功");

    User.bulkCreate([
        { uname: "贝吉塔", uage: 18 },
        { uname: "孙悟空", uage: 28 },
        { uname: "弗利萨", uage: 38 },
    ])
}